<?php
class SController{
    protected $_smart;
    public function __construct(){
        $this->_smart=new Smarty();
        
    }

	public function display($tpl=''){
		if($tpl==''){
			$tpl = './app/'.MODULE.'/View/'.CONTROLLER.'/'.ACTION.'.html';
		}else{
			$tpl = './app/'.MODULE.'/View/'.CONTROLLER.'/'.$tpl.'.html';
		}
		$this->_smart->display($tpl);
	}

	public function assign($key,$value){
		$this->_smart->assign($key,$value);
	}    
    
}













?>